package com.jintian.smart.kernel.flowable.flowable.fn;

import org.flowable.common.engine.api.variable.VariableContainer;
import org.flowable.common.engine.impl.el.function.AbstractFlowableVariableExpressionFunction;

public class TestFunction extends AbstractFlowableVariableExpressionFunction {
    final static String FUNCTION_NAME = "test";
    final static String FUNCTION_PREFIX = "mda";

    public TestFunction() {
        super(FUNCTION_NAME);
    }

    @Override
    public String prefix() {
        return FUNCTION_PREFIX;
    }

    public static Object test(VariableContainer variableContainer, String variableName) {
        Object value = getVariableValue(variableContainer, variableName);
        return value;
    }
}
